<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/1/29
 * Time: 下午2:18
 * 课程类型
 */

namespace Home\Model;
use Think\Model\BaseModel;

class TctypeModel extends BaseModel{
    protected $_map = array(
       'type_id' => 'tctype_id',
       'type_name' => 'tctype_name'
    );
    protected $_scope = array(
       'select' => array(
            'field' => array('tctype_id','tctype_name'),
       ),
    );

    public function getTctypeInfoListByAll(){
        $result = $this->scope('select')->select();

        if($result){
            return $result;
        }else{
            return array();
        }
    }


}